import { Component, _decorator } from "cc";
import { BaseObject } from "../../modules/baseObject";
import List, { ListType } from "./List";

const { ccclass, property } = _decorator;

@ccclass
export default class ItemRender extends BaseObject {
    /**数据 */
    public data: any = null;
    /**索引 0表示第一项*/
    public itemIndex: number = 0;

    /**数据改变时调用 */
    public dataChanged() {
        // this.node.getChildByName("rankLab").getComponent(Label).string = this.data.rank + "";
        // this.node.getChildByName("nameLab").getComponent(Label).string = this.data.name + "";
    }
}
